import {ref,watch} from 'vue'
import {useRoute} from 'vue-router'

const isBarShow = ()=>{
  const route = useRoute()
  const headerShow = ref(true)
  const footShow = ref(true)
  watch(route,()=>{
    const status = route.meta
    headerShow.value = status.uhead === false ? false : true
    footShow.value = status.ufooter === false ? false : true
  })
  return {headerShow,footShow}
}

export default isBarShow